(*Windows 95 is a trademark of Microsoft Corp. All copyrights belong to them. Please don't go after me, Bill. For the love of humanity!!! Have you no mercy, man?!!)
Version 2.0
(Version 1.0 was actually my NeXT MDEF; this code evolved from it)
June 1996
--------------
1) Contact & author info
Windows 95 MDEF by Hiep Dam
Reliable address:
starlabs@aol.com (though I wonder: should I stick with AOL?)
Visit my homepage, which I have not updated in months!
<http://members.aol.com/starlabs/>
--------------
2) What is it? info
This is a MDEF, a menu definition procedure code stub. It gives you a very nice Windows 95 menu look. I don't care what you say; their menus look refreshing!
However, this is mainly intended as a learning tool for other Mac programmers out there, as the term "industrial-quality commercial code" definitely does NOT apply here. <g>
I have also included a JPEG snapshot of what a *real* Windows 95 menu looks like for comparison purposes.
--------------
3) What are the features, man? info
a) Requires color, and probably System 7.1 or later. Probably a few other things too, once I can remember them.
b) Through the use of "MnuT" (MeNU Template) resources, you can specify:
- menu background color
- menu text color
- menu item hilite color
- menu font, size, and style
- an exact Windows 95 look (as much as can be expected) or my own slight spin
c) You can have a global MnuT resource that applies to all Windows95 menus, as well as individual MnuT resources for specific menus which overrides the global settings.
See the source code for more vague info.
--------------
4) What about the bugs? info
a) Height sizing of menu items is inconsistent and the last menu item is often cropped at the knees, so to speak.
b) Submenus don't work 100% as Apple-sanctioned submenus should. This is partly Apple's fault! See source code for the low-down.
c) Probably a few other thrown in there for good measure. Find Waldo!
--------------
5) What about legalities and distribution? info
Usual, standard, and bizarre disclaimers all apply. Feel free to distribute as you wish, to use as much - or as little - of the code as you wish. All I ask is that you distribute the stuff all together; don't separate them! The separation anxiety would kill Windows95.µ, not to mention DrawMenuItem.cpp. And Win95Look.c, oh she couldn't stand the loneliness. So please, be kind. Keep 'em togetha!
--------------
6) Anything else? info
Look at the source code. I'm too lazy to write anything else.
--------------
7) Parting shots
One of my favorite jokes, first heard on the Jay Leno show as told by Buddy Hackett. I have to paraphrase, as I don't remember word-for-word (as an unfortunate result, it may not be as funny):
"A man with a gun goes into an elevator. Inside, he meets Adolf Hitler, a shark, and a lawyer. However, the man has only two bullets, so he shoots the lawyer twice."